<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/9/21
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入c语言--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>文件下载</title>
</head>
<body>
<h3>文件下载</h3>
<%--遍历文件集合
String[] files = file.list();   ${files}是从前端获取的数组}--%>
<c:forEach items="${files}" var="file">
    <a href="/download?filename=${file}">${file}</a><br>
</c:forEach>
</body>
</html>
